<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>邀请好友</title>
	<#include "/common/head.html" />
    <link rel="stylesheet" href="${base}/css/inviteFriend.css" />
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
<body>
	<!--顶部导航-->
	<header class="mui-bar mui-bar-nav">
		<h1 id="title" class="mui-title">邀请好友</h1>
	</header>
	<div class="coverWrap">
		<img src="image/head.png" alt="" />
		<div class="inviteLink">
			<span>邀请好友，一起分享快乐</span>
			<div class="inviteTxt">
				<span><img src="image/text.png" alt="" /></span>
			</div>
			<div class="inviteWrap mui-clearfix">
				<div class="inviteList mui-pull-left">
					<span class="inviteListIcon icon iconfont icon-weixinhaoyou"></span>
					<span>微信好友</span>
				</div>
				<div class="inviteList mui-pull-left">
					<span class="inviteListIcon icon iconfont icon-tian7_pengyq"></span>
					<span>朋友圈</span>
				</div>
				<div class="inviteList mui-pull-left">
					<span class="inviteListIcon icon iconfont icon-qqhaoyou"></span>
					<span>QQ好友</span>
				</div>
				<div class="inviteList mui-pull-left">
					<span class="inviteListIcon icon iconfont icon-qqkongjian"></span>
					<span>QQ空间</span>
				</div>
			</div>
		</div>
	</div>
    <script type="text/javascript">
        wx.config({

            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。

            appId: '${appId}', // 必填，公众号的唯一标识

            timestamp: '${timestamp}', // 必填，生成签名的时间戳

            nonceStr: '${nonceStr}', // 必填，生成签名的随机串

            signature: '${signature}',// 必填，签名，见附录1

            jsApiList: ['onMenuShareTimeline'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2

        });
        wx.onMenuShareTimeline({

            title: '代跑腿', // 分享标题

            link: '${base}/index.html', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致

            imgUrl: '', // 分享图标

            success: function () {

                // 用户确认分享后执行的回调函数

            },

            cancel: function () {

                // 用户取消分享后执行的回调函数

            }

        });

    </script>
	<!--底部导航-->
	<#include "/common/footer.html" />
</body>
</html>